package com.kevin.proxy.dynamicProxy;

public class InterceptorTest {
    public static void main(String[] args) {
        InterceptorProxy interceptorProxy = new InterceptorProxy();
        Target target = (Target) interceptorProxy.bind(new TargetImpl(),"com.kevin.proxy.dynamicProxy.IntercepterImpl");
        Target target1 = (Target) interceptorProxy.bind(target,"com.kevin.proxy.dynamicProxy.IntercepterImpl1");
        Target target2 = (Target) interceptorProxy.bind(target1,"com.kevin.proxy.dynamicProxy.IntercepterImpl2");
        target2.say();
        /**
         * 代理嵌套代理
         */
    }
}
